<!--%import("./filter/login.xml")-->
<!--%import("./filter/openid_login.xml")-->

<!--@if($colorset == "black" || $colorset == "white")-->
    <!--%import("./css/widget.css")-->
<!--@end-->

<script type="text/javascript">
    var keep_signed_msg = "{$lang->about_keep_signed}";
    xAddEventListener(window, "load", function(){ xGetElementById("formLogin").user_id.focus(); });
</script>

<div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->">
    <!--// XE Login -->
    <form action="./" method="post" onsubmit="return procFilter(this, widget_login)" id="formLogin" class="widgetLogin">
    <fieldset>
        <dl>
            <dt><label for="uid">{$lang->user_id} :</label></dt>
            <dd><input name="user_id" type="text" id="uid" class="widgetXeInputText" title="{$lang->user_id}" /></dd>
            <dt><label for="upw">{$lang->password} :</label></dt>
            <dd><input name="password" type="password" id="upw" class="widgetXeInputText" title="{$lang->password}" /></dd>
        </dl>
        <p><input name="keep_signed" id="keepid" type="checkbox" value="Y" onclick="if(this.checked) return confirm(keep_signed_msg);" class="widgetXeInputCheck" /><label for="keepid">{$lang->keep_signed}</label></p>
        <!--@if($member_config->enable_openid=='Y')-->
        <p><input name="use_open_id" id="use_open_id" type="checkbox" value="Y" onclick="xGetElementById('formLogin').style.display = 'none';xGetElementById('formOpenID').style.display='block';xGetElementById('formOpenID').openid.focus();return false;" class="inputCheck" /><label for="use_open_id">Open ID</label></p>
        <!--@end-->
        <span><input name="" type="submit" value="{$lang->cmd_login}" class="sign_in"></span>
        <ul class="help">
            <li><a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->cmd_signup}</a></li>
            <li><a href="{getUrl('act','dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a></li>
            <li><a href="{getUrl('act','dispMemberResendAuthMail')}">{$lang->cmd_resend_auth_mail}</a></li>
        </ul>
    </fieldset>
    </form>

    <!--// OpenID Login -->
    <!--@if($member_config->enable_openid=='Y')-->
    <form action="{getUrl('module','member','act','procMemberOpenIDLogin')}" method="post" onsubmit="return procFilter(this, openid_login)" id="formOpenID" style="display:none;" class="widgetLogin">
    <dl>
        <dt><label for="OpenID">OpenID :</label></dt>
        <dd><input name="openid" type="text" class="inputText" title="openid" /></dd>
    </dl>
    <p><input name="use_open_id" id="uopenid" type="checkbox" checked="checked" value="Y" onclick="xGetElementById('formLogin').style.display = 'block';xGetElementById('formOpenID').style.display='none';xGetElementById('formLogin').user_id.focus();return false;" class="inputCheck" /><label for="uopenid">Open ID</label></p>
    <span class="button green login"><input name="" type="submit" value="{$lang->cmd_login}" /></span>
    </form>
    <!--@end-->
</div>
